home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / lib / partman / finish.d / 70aptinstall_basicfilesystems < prev    next >
Text File  |  2009-10-28  |  643b  |  40 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/lib/base.sh
  4.  
  5. swap=no
  6. ext2=no
  7. fat=no
  8.  
  9. for dev in $DEVICES/*; do
  10.     [ -d "$dev" ] || continue
  11.     cd $dev
  12.     partitions=
  13.     open_dialog PARTITIONS
  14.     while { read_line num id size type fs path name; [ "$id" ]; }; do
  15.         [ "$fs" != free ] || continue
  16.         [ -f $id/method -a -f $id/acting_filesystem ] || continue
  17.         filesystem=$(cat $id/acting_filesystem)
  18.         case $filesystem in
  19.             linux-swap)
  20.             swap=yes
  21.             ;;
  22.             ext2)
  23.             ext2=yes
  24.             ;;
  25.             fat16|fat32)
  26.             fat=yes
  27.             ;;
  28.         esac
  29.     done
  30.     close_dialog
  31. done
  32.  
  33. if [ "$ext2" = yes ]; then
  34.     apt-install e2fsprogs || true
  35. fi
  36.  
  37. if [ "$fat" = yes ]; then
  38.     apt-install dosfstools || true
  39. fi
  40.